﻿$(document).ready(function () { 
    SetButtonStyle();
});
var SetButtonStyle = function () {
    var o = document.all.tags("input");
    for (var i = 0; i < o.length; i++) {
        if (o[i].type == "text" || o[i].type == "password") {
            o[i].className = "inputLess";
        }
        else if (o[i].type == "button" || o[i].type == "submit" || o[i].type == "reset") {
            if (!o[i].disabled) {
                var objID = o[i].id;
                if (objID && (objID.indexOf("CourseTable_Btn") > -1 || objID.indexOf("CourseTable1_Btn") > -1 || objID.indexOf("CourseTable21_Btn") > -1 || objID.indexOf("Color_btn") > -1))
                    o[i].className = "inputMost2";
                else
                    o[i].className = "inputMost";
            }
            else {
                o[i].className = "disabledButton";
            }
        }
    }
}